package day7;

import ChouXiang.Ui;

public class USBMouse implements Usb {
    private String brand;
    private int price;

    public USBMouse(String brand, int price) {
        this.brand = brand;
        this.price = price;
    }
    public void sunshaine(){
        System.out.println(brand+"鼠标有个闪光灯");
    }

    @Override
    public void plugin() {
        System.out.println(brand+"的鼠标接入了usb口，出现了鼠标的小箭头" );
    }

    @Override
    public void unuplug() {
        System.out.println(brand+"的鼠标被拔掉了");

    }

    @Override
    public void work() {
        System.out.println(brand+"鼠标箭头在屏幕上移动");
    }

    @Override
    public String toString() {
        return "这是"+this.brand+"鼠标,"+"价格是"+price;
    }
}
